package infoPackage;

public class Material {
	
	private String name = null;
	private float price = -1;
	private float percentage = -1 ;
	
	public Material(String name, float price){
		this.setName(name);
		this.setPrice(price);
	}
	
	public Material(String name, float price, float percentage){
		this.setName(name);
		this.setPrice(price);
		this.setPercentage(percentage);
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param price the price to set
	 */
	public void setPrice(float price) {
		this.price = price;
	}

	/**
	 * @return the price
	 */
	public float getPrice() {
		return price;
	}

	/**
	 * @param percentage the percentage to set
	 */
	public void setPercentage(float percentage) {
		this.percentage = percentage;
	}

	/**
	 * @return the percentage
	 */
	public float getPercentage() {
		return percentage;
	}
	
	/**
	 * 
	 */
	public void printMaterial(){
		System.out.println("	"+ this.name + " - price: " + this.price + " | percentage: " + this.percentage);
	}
}